/**
 * ownCloud - Music app
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Pauli Järvinen <pauli.jarvinen@gmail.com>
 * @copyright Pauli Järvinen 2017
 */

#music-controls {
	height: 66px;
	width: 100%;
	padding: 0 20px 0 20px;
	position: fixed;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.95);
	z-index: 50;
	text-align: left;
}

#music-controls, #music-controls * {
	display: inline-block;
	box-sizing: border-box;
}

#music-controls > img.right {
	position: absolute;
	top: 0;
	right: 0;
}

#music-controls .control {
	height: 52px;
	width: 52px;
	padding: 10px;
	margin: 9px 2px 5px;
	cursor: pointer;

	/* opacity */
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
	filter: alpha(opacity = 40);
	opacity: .4;
}

#music-controls .control.small {
	height: 44px;
	width: 44px;
	margin: 13px 2px 9px;
}

#music-controls .control#close {
	height: 46px;
	width: 46px;
	margin: 0;
	padding: 15px;
	position: absolute;
	right: 0;
	top: 0;
}

#music-controls .control:hover, #music-controls .control:focus {
	/* opacity */
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity = 100);
	opacity: 1;
}

#music-controls #albumart {
	height: 50px;
	width: 50px;
	margin: 8px 12px 8px 46px;
	line-height: 50px;
	font-size: 28px;
	background-size: cover;
	display: inline-block;
	border: solid #eee 1px;
}

#music-controls #info-and-progress {
	display: inline-block;
	position: absolute;
	left: 180px;
	right: 180px;
	width: auto;
	height: 100%;
}

#music-controls #song-info {
	height: 100%;
	width: 60%;
	margin-top: 7px;
	vertical-align: top;
}

#music-controls #song-info span {
	width: 100%;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	vertical-align: top;
}

#music-controls #title {
	font-weight: bold;
	font-size: 21px;
	line-height: 29px;
}

#music-controls .progress-info {
	width: 40%;
	text-align: center;
	margin: 0 auto 25px auto;
	overflow: hidden;
}

#music-controls .progress-info span {
	line-height: 30px;
}

#music-controls .seek-bar {
	width: 100%;
	max-width: 350px;
	height: 15px;
	margin: 0 auto 0 auto;
	position: relative;
	background-color: #eee;
}

#music-controls .seek-bar, #music-controls .play-bar, #music-controls .buffer-bar {
	display: block;
}

#music-controls .play-bar, #music-controls .buffer-bar {
	position: absolute;
	left: 0;
	top: 0;
	height: 15px;
	width: 0%;
	background-color: #1d2d44;
}

#music-controls .buffer-bar {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=10)";
	filter: alpha(opacity = 10);
	opacity: 0.1;
}

#music-controls .volume-control {
	position: absolute;
	right: 120px;
}

.ie.lte9 #music-controls .volume-control {
	display: none;
}

#music-controls #volume-icon {
	cursor: default;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
	filter: alpha(opacity = 40);
	opacity: .4;
	position: absolute;
	top: 0;
	left: 0;
}

#music-controls .volume-control input[type=range] {
	position: absolute;
	width: 58px;
	height: 3px;
	min-height: 3px;
	top: 31px;
	left: 21px;
	margin: 0;
	-webkit-appearance: none;
	background-color: silver;
	transform: rotate(270deg);
}

.ie #music-controls .volume-control input[type=range] {
	height:auto;
	top: 3px;
	left: 26px;
	background-color: transparent;
}

::-webkit-slider-thumb {
	-webkit-appearance: none;
	background-color: #666;
	border-radius: 100%;
	width: 10px;
	height: 10px;
}

:hover::-webkit-slider-thumb {
	cursor: pointer;
}

::-moz-range-thumb {
	-moz-appearance: none;
	background-color: #666;
	border-radius: 100%;
	width: 10px;
	height: 10px;
}

:hover::-moz-range-thumb {
	cursor: pointer;
}

/* "Tablet" style */
@media only screen and (max-width: 1024px) {
	#music-controls {
		padding: 0;
	}
	#music-controls #albumart {
		margin-left: 10px;
	}
	#music-controls #info-and-progress {
		left: 130px;
		right: 140px;
	}
	#music-controls #title {
		font-size: 14px;
	}
}

/* "Portrait phone" style */
@media only screen and (max-width: 570px) {
	#music-controls #albumart {
		margin-left: 0px;
		margin-right: 0px;
	}
	#music-controls #info-and-progress {
		left: 115px;
		right: 50px;
	}
	#music-controls .volume-control {
		display: none;
	}
}

/* Hide the music controls when menu on left is in collapsible mode (on portrait phone)
 * and the menu is open */
body.snapjs-left #music-controls {
	visibility: hidden;
}
	